package com.gitee.qdbp.general.trade.biz.personal.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.gitee.qdbp.able.exception.ServiceException;
import com.gitee.qdbp.able.jdbc.ordering.OrderPaging;
import com.gitee.qdbp.able.jdbc.paging.PageList;
import com.gitee.qdbp.general.trade.api.personal.model.PersonalAddressBean;
import com.gitee.qdbp.general.trade.api.personal.model.PersonalAddressWhere;
import com.gitee.qdbp.general.trade.api.personal.service.IPersonalAddressQueryer;
import com.gitee.qdbp.general.trade.biz.personal.basic.PersonalAddressBasic;

/**
 * 用户地址业务处理类
 *
 * @author zhh
 * @version 180716
 */
@Service
@Transactional(readOnly = true)
public class PersonalAddressQueryer implements IPersonalAddressQueryer {

    /** 用户地址DAO **/
    @Autowired
    private PersonalAddressBasic personalAddressBasic;

    @Override
    public PersonalAddressBean find(String id) throws ServiceException {
        return personalAddressBasic.findById(id);
    }

    @Override
    public PersonalAddressBean find(PersonalAddressWhere where) throws ServiceException {
        return personalAddressBasic.find(where);
    }

    @Override
    public PageList<PersonalAddressBean> list(PersonalAddressWhere where, OrderPaging paging) throws ServiceException {
        return personalAddressBasic.list(where, paging);
    }

}